package com.heima.service.impl;

import com.heima.mapper.BusinessMapper;
import com.heima.pojo.vo.BusinessTypeVo;
import com.heima.service.BusinessService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@RequiredArgsConstructor
public class BusinessServiceImpl implements BusinessService {

    private final BusinessMapper businessMapper;

    /**
     * 查询商圈列表
     * @return
     */
    @Override
    public List<BusinessTypeVo> queryAll() {
        return businessMapper.queryAllBusiness();
    }
}
